package cn.gzsxt.utils;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Test {
DBUtil db =new DBUtil();
public static void main(String[] args) {
	Connection conn = DBUtil.getConn();
	String sql  = "select * from t_sysuser "; 
	try {
		PreparedStatement ps = conn.prepareStatement(sql);
		ResultSet set = ps.executeQuery();
		if(set.next()){
			String name = (String) set.getObject("admin");
			System.out.println(name);
		}
	} catch (SQLException e) {
		e.printStackTrace();
	}
}
}
